package com.jhy.member;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;


//使用mybatis-plus做为持久层框架，使用@MapperScan扫描所有标了@Mapper注解的dao类
//并通过配置文件配置mybatis的xml文件的位置
@MapperScan("com.jhy.member.dao")
@EnableDiscoveryClient //启用服务的注册与发现
@EnableFeignClients("com.jhy.member.feign") //通过Feign远程调用，feign接口所在的位置
@SpringBootApplication
public class MemberApplication {

    public static void main(String[] args) {
        SpringApplication.run(MemberApplication.class, args);
    }

}
